Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account api gsi reversal v2 #83

Merged
merged 6 commits into from
Nov 25, 2021
Merged

Account api gsi reversal v2 #83

merged 6 commits into from
Nov 25, 2021

Conversation

HHjolany
Copy link
Contributor

@HHjolany HHjolany commented Nov 24, 2021

Link to ClickUp ticket

https://app.clickup.com/t/1kcgq2e

Describe this PR

What is the problem we're trying to solve

due to requirement for the account search based on the "tenure id" (targetid = tenureid) without partition key, transferring of search by "targetId" to the Housing Seach API was needed. Hence, according to the single-purpose search instead of searching on all text fields, the HousingSearchRequest Class was chosen as an abstract class to prepare some ability to inherit some different Request Classes from that. and then in the new Request Class the possibility to achieve the single-purpose search option arised.

What changes have we introduced

The main housing search request was chosen as abstract class to give the child classes extension ability for single-purpose search

Checklist

  • HousingSearchRequst was chosen as an abstract class
  • New SearchRequest classes related to the tenure, person, asset and account was created

if (!(request is GetPersonListRequest personListRequest))
{
return null;
throw new ArgumentNullException($"{nameof(request).ToString()} shouldn't be null.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need ToString() call? I think an implicit conversion will be called

@HHjolany HHjolany merged commit 2f228d5 into master Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants